package com.herr.wei.demo;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;

public class Act3 extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.act3);
		
	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {
			this.finish();
			overridePendingTransition(R.anim.act_lessen_in, R.anim.act_lessen_out);
		}
		return true;
	}
	
}
